package com.mmd.admin.model.pojo.request.mer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@ApiModel(value = "后台新增及更新管理员参数")
public class MerAdminAddOrEditParam {

    @ApiModelProperty("id")
    private Long id = 0L;

    @ApiModelProperty(value = "管理员名称")
    @NotBlank(message = "管理员名称不能为空")
    private String name;

    @ApiModelProperty(value = "管理员账号")
    @NotBlank(message = "管理员账号不能为空")
    private String userName;

    @NotBlank(message = "管理员密码不能为空")
    @ApiModelProperty(value = "密码")
    private String passWord;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty("角色id")
    @NotNull(message = "角色id不能为空")
    private Long roleId;

}
